const fp = require('lodash/fp');

let _undersource = fp.replace(/\W+/, '_');


const sanitizeNames = fp.flowRight(fp.map(fp.flowRight(fp.toLower, _undersource)));

console.log(sanitizeNames(['Hello Word']))